// @ts-nocheck
import * as http from '@/tools/http'

/**
 * 查询客户
 * */
export async function queryClient(params: object) {
  return http.get('/api/business/client', params)
}

/**
 * 新增客户
 * */
export async function createClient(params: object) {
  return http.postFile('/api/business/client', params)
}

/**
 * 修改客户
 * */
export async function modifyClient(params: object) {
  return http.put('/api/business/client', params)
}

/**
 * 删除客户
 * */
export async function delClient(params: object) {
  return http.del('/api/business/client', params)
}

/**
 * 导出客户样例
 * */
export async function downloadClientExample(params: object) {
  return http.get('/api/business/client/example', params)
}

/**
 * 导入客户
 * */
export async function uploadClient(params: object) {
  return http.post('/api/business/client/upload', params)
}
